<div id="main_content">
<table class="table" cellspacing="0" cellpadding="4" border="0">
	<tr>
		<th><?=lang('tree_id')?></th>
		<th><?=lang('tree_title')?></th>
		<th><?=lang('tree_uri')?></th>
		<th><?=lang('tree_modul')?></th>
		<th><?=lang('tree_template')?></th>
		<th><?=lang('actions')?></th>
	<tr>
	<?php foreach($tree as $row): ?>
	<tr>
		<td><?=$row['id'] ?></td>
		<td><?=($row['level'] > 0) ? nbs($row['level']*3) : '';?><?=$row['title'] ?></td>
		<td><?=$row['uri'] ?></td>
		<td><?=$row['modul'] ?></td>
		<td><?=$row['template'] ?></td>
		<td>
		<?=modalbox('edit/'.$row['uri'], image('images/icons/gear.png'), lang('edit_page').' - '.$row['title']);?>
		<?=($row['uri'] != 'www') ? modalboxquestion ('del/'.$row['uri'], image('images/icons/cross.png'), lang('del_page').' - '.$row['title']):''?>
		</td>
	</tr>
	<?php endforeach; ?>
</table>

<?=modalbox('add', lang('create_page'), lang('create_page'), array('class' => 'add'));?>
</div>